package ynny.dome03;

public class FruitTest {
    public static void main(String[] args) {
    Fruit fruit1 = new Fruit();
    Fruit fruit2 = new Fruit();
    Fruit fruit3 = new Fruit();
    Fruit fruit4 = new Fruit();

    fruit1.setName("apple");
    fruit1.setArea("China");
    fruit1.setPrice(4.99);

    fruit2.setName("banana");
    fruit2.setArea("USA");
    fruit2.setPrice(3.99);

    fruit3.setName("tangerine");
    fruit3.setArea("US");
    fruit3.setPrice(2.99);

    fruit4.setName("watermelon");
    fruit4.setArea("Spain");
    fruit4.setPrice(2.99);

        System.out.println("fruit1");
        System.out.println("fruit2");
        System.out.println("fruit3");
        System.out.println("fruit4");



                 }
         }